new Vue({
	el:'#app',
	data:{
		orderSn:'',
	},
	mounted(){
			showHead();
			showLeftMenu();
	},
	methods:{
		addReport(){
			
			$.ajax("/doctor/Report/addReport", {
			    type: "POST",
			    data: {
			      orderSn:this.orderSn,
			    },
			    success: function(data, textStatus) {
					console.log(data)
					let datas = JSON.parse(data);
			        if (datas.statusCode == 200) {
			          
			            alert(datas.errMsg);
						
						location.href="href?to="+datas.location;
			
			
			        } else {
			            alert(datas.errMsg)
			        }
			    }
			})
			
			
			
			
		}
	}
})